package com.ukao.cashregister.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ukaodev on 2017/6/8.
 */

public class OperationStatus implements Parcelable {
    String time;
    String status;
    String operator;
    Long id;

    public OperationStatus(String time, String status, String operator, Long id) {
        this.time = time;
        this.status = status;
        this.operator = operator;
        this.id = id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.time);
        dest.writeString(this.status);
        dest.writeString(this.operator);
        dest.writeValue(this.id);
    }

    protected OperationStatus(Parcel in) {
        this.time = in.readString();
        this.status = in.readString();
        this.operator = in.readString();
        this.id = (Long) in.readValue(Long.class.getClassLoader());
    }

    public static final Parcelable.Creator<OperationStatus> CREATOR = new Parcelable.Creator<OperationStatus>() {
        @Override
        public OperationStatus createFromParcel(Parcel source) {
            return new OperationStatus(source);
        }

        @Override
        public OperationStatus[] newArray(int size) {
            return new OperationStatus[size];
        }
    };
}
